//
//  SpineTestViewModel.h
//  JiZhuiAn
//
//  Created by Easy.Lin on 16/6/20.
//  Copyright © 2016年 Easy. All rights reserved.
//

#import "BaseViewModel.h"
#import "GWQuestionnaire.h"
#import "APIService+Test.h"

typedef NS_ENUM(NSInteger,VERTEBRAINJURIES)
{
    VERTEBRAINJURIESHEALTH      = 1,
    VERTEBRAINJURIESLIGHT       = 2,
    VERTEBRAINJURIESMIDDLE      = 3,
    VERTEBRAINJURIESHEAVY       = 4,
    VERTEBRAINJURIESDISABILITY  = 5,
};

typedef NS_ENUM(NSInteger,TESTTYPE)
{
    TESTTYPECERVICALVERTEBRA = 0, // 颈椎
    TESTTYPELUMBARVERTEBRA = 1,   // 腰椎
};

@interface SpineTestViewModel : BaseViewModel
{
    VERTEBRAINJURIES injury;

}
@property (nonatomic, strong) RACCommand *submitCommand;
@property (nonatomic, strong) RACSignal  *validSignal;
@property (nonatomic, strong) GWQuestionnaire *surveyController;
@property (nonatomic, assign) BOOL questionaireCompleted;
@property (nonatomic, strong) NSMutableArray *surveyItems;
@property (nonatomic) TESTTYPE testType;
- (RACSignal *)submitTheArray;
@end

